﻿using SmartlForm.SimpleCrawler.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartlForm.SimpleCrawler.Events
{
    public class OnErrorEventArgs
    {
        public Uri Uri { get; set; }

        public Exception Exception { get; set; }

        public SiteModel SiteConfig { get; set; }

        /// <summary>
        /// 日志Id
        /// </summary>
        public long LogId { get; set; }

        public OnErrorEventArgs(Uri uri,Exception exception,SiteModel siteConfig,long logId=0) {
            this.Uri = uri;
            this.Exception = exception;
            this.SiteConfig = siteConfig;
            LogId = logId;
        }
    }
}
